verify

open suspend fun verify(jwt: String): Result<JWT>(source)

Verifies the signature of the jwt and extracts its payload

Return

the payload of the JWT if signature is valid, otherwise raises InvalidJwt

Parameters

jwt

the JWT to validate